package com.jackstraw.jack_base.datasource.jpa.controller;


import com.jackstraw.jack_base.datasource.jpa.entity.po.UserPo;
import com.jackstraw.jack_base.datasource.jpa.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @Autowired
    private UserService userServiceImpl;


    @GetMapping("/get")
    @ResponseBody
    public UserPo get() {
        UserPo userPo = new UserPo();
//        userPo.setId(1525321272744009740l);

//
//        UserPo byId = userServiceImpl.getDao().getById(userPo);
//        UserBo userBo = userServiceImpl.get(userPo);

        return userPo;
    }

}
